import request from '@/utils/request'

// 列表
export function list(params){
  return request({
    url:'/wx/order/list',
    method:'get',
    params:params
  })
}

export function refused(query) {
  return request({
    url: 'https://hometasty.hk/demo/odertui.php',
    method: 'get',
    params: query,
  })
}
export function orercert(params){
  return request({
    url:'https://hometasty.hk/demo/orercert.php',
    method:'post',
    params:params
  })
}

// 详情
export function del(params){
  return request({
    url:'/wx/order/detail',
    method:'get',
    params:params
  })
}
// 退款详情
export function tuidel(params){
  return request({
    url:'/wx/order/refundRequest',
    method:'post',
    params:params
  })
}
// 退款
export function refund(params){
  return request({
    url:'/wx/order/refund',
    method:'post',
    params:params
  })
}
// 取消订单
export function cancel(params){
  return request({
    url:'/wx/order/cancel',
    method:'post',
    params:params
  })
}

// 支付
export function pay(params){
  return request({
    url:'/wx/paypal/pay',
    method:'post',
    params:params
  })
}
// 支付成功
export function success(data){
  return request({
    url:'/wx/order/success',
    method:'post',
    data
  })
}
// 支付配置
export function conf(params){
  return request({
    url:'/wx/paypal/conf',
    method:'get',
    params:params
  })
}
// 评论
export function comment(data){
  return request({
    url:'/wx/order/comment',
    method:'post',
    data
  })
}
// 确认收货
export function confirm(params){
  return request({
    url:'/wx/order/confirm',
    method:'post',
    params:params
  })
}
// 查询付款金额
export function payinfo(data){
  return request({
    url:'/wx/order/payinfo',
    method:'post',
    data
  })
}
// ATM付款
export function atmpay(data){
  return request({
    url:'/wx/pay/atmPay',
    method:'post',
    data
  })
}
// ATM付款上传凭证
export function atmmon(data){
  return request({
    url:'/wx/order/uploadCert',
    method:'post',
    data
  })
}
// 注册
// export function register(data){
//   return request({
//     url:'/wx/register',
//     method:'post',
//     data:data
//   })
// }
// 忘记密码
// export function resetPwd(data){
//   return request({
//     url:'/wx/user/resetPwd',
//     method:'post',
//     data:data
//   })
// }
//获取区号列表
// export function getAreaCode(data){
//   return request({
//     url:'/wx/address/getAreaCode',
//     method:'post',
//     data:data
//   })
// }

// firstdata支付
export function firstDataPay(data){
  return request({
    url:'/wx/paypal/firstData',
    method:'post',
    params:data
  })
}

// firstdata
export function firstDataPayOther(data){
  return request({
    url:'https://test.ipg-online.com/connect/gateway/processing',
    method:'post',
    data:data
  })
}